import $axios from 'axios';

export default (option) => {
    // 默认配置
    const instance = $axios.create({
        method: 'GET',
        url: '',
        data: {},
        params: {},
        baseURL: 'http://10.255.126.154:8088/earthview/rest/services/vectorserver/wfs/getFeatureByJson',
    })
    instance.interceptors.request.use(config => {
        return config;
    }, err => {
        return err
    })
    instance.interceptors.response.use(response => {
        return response
    }, err => {
        return err
    })
    return instance(option)
}